#!/usr/bin/env python

from PIL import Image

data = open('evil2.gfx', 'rb').read()
for i in range(5):
    new_data = ''
    for j in range(i, len(data), 5):
        new_data += data[j]
    open('evil2_%d.dat' %(i), 'wb').write(new_data)
